import request from '@/utils/request'

// 组件管理


// 根据端id查询组件
export function queryComponentBySegmentId(data) {
  return request({
    url: '/admin/modules/component/queryComponentBySegmentId',
    method: 'post',
    data: data
  })
}

// 新增或者修改组件
export function addOrEditComponent(data) {
  return request({
    url: '/admin/modules/component/addOrEditComponent',
    method: 'post',
    data: data
  })
}


// 批量删除
export function batchDeleteComponentByIds(data) {
  return request({
    url: '/admin/modules/component/batchDeleteComponentByIds',
    method: 'post',
    data: data
  })
}
